package best.driver.android.common.app;

import android.content.Context;
import best.driver.android.common.network.INetworkManager;
import best.driver.android.common.network.NetworkManager;
import best.driver.android.common.push.IPushMessageManager;

public class AppProxy implements IAppProxy {

    private Context mContext;
    private NetworkManager mNetworkManager;

    @Override
    public void init(Context ctx) {
        this.mContext = ctx;
    }

    public Context getContext() {
        return mContext;
    }

    @Override
    public INetworkManager getNetworkManager() {
        if (mNetworkManager == null) {
            mNetworkManager = new NetworkManager(mContext);
        }

        return mNetworkManager;
    }

    @Override
    public IPushMessageManager getPushManager() {
        return null;
    }

    @Override
    public IAppConfig getAppConfig() {
        return null;
    }
}
